package com.xuxin.baby.contract;

import com.xuxin.baby.bean.IsBuyBean;
import com.xuxin.baby.bean.VideoBean;
import com.xuxin.baby.bean.VideoCollectedBean;
import com.xuxin.baby.presenter.VideoPresenter;

/**
 * Created by xu_xin
 * Created on 2020/11/2 0002
 * 视频播放
 */
public interface VideoContract {

    interface Model {

        void getVideo(VideoPresenter presenter, String tenantId, String token, String videoId);

        void isCollected(VideoPresenter presenter, String tenantId, String token, String memberId, String videoId);

        void isBuy(VideoPresenter presenter, String tenantId, String token, String memberId, String videoId);
    }

    interface View extends BaseContract.view {

        void onSuccess(VideoBean videoBean);

        void onSuccess(VideoCollectedBean videoCollectedBean);

        void onSuccess(IsBuyBean isBuyBean);
    }

    interface Presenter extends BaseContract.presenter {

        void getVideo(String tenantId, String token, String videoId);

        void isCollected(String tenantId, String token, String memberId, String videoId);

        void isBuy(String tenantId, String token, String memberId, String videoId);

        void onSuccess(VideoBean videoBean);

        void onSuccess(VideoCollectedBean videoCollectedBean);

        void onSuccess(IsBuyBean isBuyBean);
    }
}